/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tia1.dao;
import tia1.dao.*;
import java.sql. *;
public final class ConexionTiaBD {
public static Connection obtenerConexion() throws SQLException {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}

con = DriverManager.getConnection("jdbc:mysql://localhost/tia1", "root", "");
return con;
}
}

